/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hitechbangla.fctu.base.base;

import java.io.Serializable;
import java.util.List;
import resource_builder.GenericTypeBuilder;

/**
 *
 * @author Sultan
 */
public class GbadType implements Serializable{
    
    private String name;
    private float takeOfHeading;
    
    private static final long serialVersionUID = 3L;

    public GbadType(String name, float takeOfHeading)
    {
        this.name = name;
        this.takeOfHeading = takeOfHeading;
    }
            
    /**
     * @return the name
     * 
     * 
     */
    public String getName() 
    {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) 
    {
        this.name = name;
    }

    /**
     * @return the takeOfHeading
     */
    public float getTakeOfHeading() 
    {
        return takeOfHeading;
    }

    /**
     * @param takeOfHeading the takeOfHeading to set
     */
    public void setTakeOfHeading(float takeOfHeading) 
    {
        this.takeOfHeading = takeOfHeading;
    }
    
    public static List<GbadType> getAllGbadTypes()
    {
        GenericTypeBuilder<GbadType> genericTypeBuilder = new GenericTypeBuilder<>();
        List<GbadType> listGbadType = genericTypeBuilder.readAll("gbadType.object");
	return listGbadType;
        
	
    }
    
    
}
